import instance from "@/utils/request";

//  获取资源列表
export const  templateList = (searchForm)=>instance.post("/templates/list",searchForm)


// 模板上传
export const  uploadTemplate = (formData)=>instance.post("/templates/upload",formData)

// 添加模板信息
export const  addTemplateInfo = (templateForm)=>instance.post("/templates/add",templateForm)


// 删除模板信息
export const  removeTemplateInfo = (uuid)=>instance.delete("/templates/"+uuid)

// 模板上传
export const  downloadTemplate = (uuid)=>instance.get("/templates/download",{params:uuid,responseType:"arraybuffer"})
